This patch resizes the file system on the xm-test HVM disk.img to use
authorstekloff@elm3b216.beaverton.ibm.com <stekloff@elm3b216.beaverton.ibm.com>
Fri, 19 May 2006 15:29:34 +0000 (16:29 +0100)
committerstekloff@elm3b216.beaverton.ibm.com <stekloff@elm3b216.beaverton.ibm.com>
Fri, 19 May 2006 15:29:34 +0000 (16:29 +0100)
the entire space available.

Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
tools/xm-test/ramdisk/bin/create_disk_image

index bde4b2dededad2a88bcf685fd07b5b97c47243bb..513af46d3549a26fc7de21f994f961beb9a97973 100644 (file)
@@ -208,6 +208,13 @@ function dd_rootfs_to_image()
        if [ $? -ne 0 ]; then
                die "Failed to dd $ROOTFS to $LOOPP."
        fi
+
+       # Resize fs to use full partition
+       e2fsck -f $LOOPP 
+       resize2fs $LOOPP
+       if [ $? -ne 0 ]; then
+               die "Failed to resize rootfs on $LOOPP."
+       fi
 }
 
 function get_kernel()